import request from '@/utils/request'

export function create(tenant) {
  return request.post('/api/sys/tenant', tenant)
}

export function get(id) {
  return request.get('/api/sys/tenant/' + id)
}

export function getList(query) {
  return request.get('/api/sys/tenant', { params: query })
}

export function count(query) {
  return request.get('/api/sys/tenant/count', { params: query })
}
